<script src='../functions.js'></script>
<script src='../dom.js'></script>
<script src='../dom.event.js'></script>
<script src='../utils.js'></script>
<script src='../debug.js'></script>
<script src='../liveui.js'></script>

<script src='/protolex/lex3.js'></script>
<script src='/protolex/lex3.extra.js'></script>

<body>

<script>



(function(){

var print_out = [];
var print = function(){
	var x = arguments.length > 1 ? sprintf.apply(this, arguments) : arguments[0];
	print_out[print_out.length] = x;
};
window.setTimeout(function(){
	var elem = document.createElement('pre');
	elem.innerHTML = print_out.join('');
	document.body.appendChild(elem);
	print_out = [];
}, 10);



mklex({
	INITIAL: [
		[/<.*?>/, function(yytext){ print('[' + html_escape(yytext) + ']') }],
		//[/[ab]*?ab/, function(yytext){ print('char: ' + yytext + '<br>') }],
		[/./, function(yytext){ }],
	]
});

//yylex('aabababc');
yylex('<a> <b>');
})();

</script>